﻿using System;

public abstract class Primitive
{
    public const float plusZero = 0.001f;
    public const float minusZero = -0.001f;
    public Material material;
    public abstract bool intersect(Ray r);
    public abstract Vector3 getNormal(Vector3 v);
    public abstract Vector3 getCentre();
    public abstract float getWidth();
    public void setMaterial(Material m)
    {
        this.material = m;
    }
}
